﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.LinqToSqlProvider;
using System.Data.Linq;
using MvcEngine.Core.Helpers;
using MvcEngine.Gallery.Models;

namespace MvcEngine.Gallery.LinqToSqlProvider
{
    public static class GalleryDataContextExtensions
    {
        public static Table<GalleryData> Galleries(this DataContext context)
        {
            return context.GetTable<GalleryData>();
        }

        public static Table<GalleryImage> GalleryImages(this DataContext context)
        {
            return context.GetTable<GalleryImage>();
        }

        public static Table<GalleryImageCategory> GalleryImageCategories(this DataContext context)
        {
            return context.GetTable<GalleryImageCategory>();
        }

        public static Table<GalleryCategory> GalleryCategories(this DataContext context)
        {
            return context.GetTable<GalleryCategory>();
        }
    }
}
